using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace webapp4U.UI.Controls
{
    public partial class TitlePublic : System.Web.UI.UserControl
    {
        public string _resourceKey = "";

        public string TitleName
        {
            get { return _resourceKey; }
            set { _resourceKey = value; }
        }

        public string _text = "";

        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }


        protected void Page_Load(object sender, EventArgs e)
        {
            //lblTitle.Text = (String)GetGlobalResourceObject("WebMaster", ResourceKey);
            if (Text.Length > 1)
                lblTitle.Text = Text ;
            else
                lblTitle.Text = TitleName;
        }


    }
}